You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reduce hosted runner setup and record CI compilation timings - #640
Part of #397. The coverage floor rollout is in #639.
Share Linux package selection across CI, tagged tests and packaging. Probe packages already on the runner, separate compile dependencies from GPU test-runtime packages, and bound apt retries and timeouts.
Reuse preinstalled Android SDK/NDK packages and restore the pinned cargo-ndk tool. Only main CI writes that cache.
Collect Cargo compilation timing artifacts for desktop CI and tagged Linux tests. Time browser patches, host tests, Trunk and wasm-opt in separate steps.
Upload already-compressed packages without recompressing them. Keep artifact paths, signatures and provenance checks.
bash -n .github/scripts/linux-deps.sh and bash -n android/ci-setup.sh passed. Verified package selection with --list for all four Linux profiles.
Before this change, 30 successful first-attempt code PRs reached the required CI verdict at a median of 18.5 minutes and P90 of 22.6 minutes. In one slower run, the standalone Linux build took 13 minutes and the test step took 17 minutes. Both still run while we collect the timings needed to identify equivalent work. The runner and release savings have not been measured yet.
Summary by CodeRabbit
Chores
Build and test workflows now provide timing reports for completed runs, helping contributors review how long different stages take.
Linux and Android build environments now avoid reinstalling packages that are already available, and Android builds can reuse a cached tool.
Release and website artifacts are uploaded without compression.
Documentation
Updated testing guidance explains where timing reports are available and how Linux build environments are configured.
Review was skipped as selected files did not have any reviewable changes.
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: b04be3e9-551a-4a5f-9b24-08aa7158e6d8
Commits
Reviewing files that changed from the base of the PR and between 3861748 and 3dc16bd.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Walkthrough
Changes: CI workflows
Layer / File(s)
Summary
Linux dependency setup .github/scripts/linux-deps.sh, .github/workflows/ci.yml, .github/workflows/nightly-release.yml, .github/workflows/packaging.yml, docs/testing.md
A shared script selects packages by lane, checks for missing packages, and installs them with bounded retries and timeouts. CI jobs use the script, and the documentation describes its package selection and reporting.
Build and test commands collect Cargo timings. CI workflows upload timing reports, and the documentation lists the lanes and website phases that provide timing information.
Android setup and caching android/ci-setup.sh, .github/workflows/ci.yml, .github/workflows/packaging.yml
Android setup installs missing SDK packages and checks the pinned cargo-ndk version. CI workflows restore and conditionally save a cargo-ndk cache.
Website steps and artifact uploads .github/workflows/website-pipeline.yml, .github/workflows/packaging.yml
The website workflow separates source patching, host tests, and WASM compilation. Packaging and website artifact uploads use compression level 0.
This change adjusts CI setup, caching, timing reports, and artifact compression. No concrete problem was found in the supplied material, so the merge risk is low. Runner savings have not yet been measured.
Security architecture risk: Minimal · up to 38617
The review found no material increase in risk from reusing the Android build tool. The configured workflow saves it only after successful setup on main, and the release signing and verification steps remain in place.
Security review details
Security Blast Radius
inferred — A matching cargo-ndk cache entry can affect Android CI and the Android APK build. In packaging, the executable runs in the build step that receives signing credentials when configured. The inspected restore does not feed desktop packages or website deployment.
Trust Boundaries and Controls
observed — The configured executable-cache writer runs after Android setup succeeds on a push to main and only when there was no exact hit. Packaging restores without a save step. The setup script executes the restored tool to check its version; the cache key identifies the expected inputs, not the contents of the executable.
Resilience and Maintainability Implications
inferred — A failed Android setup does not reach the cache-save step. A wrong-version executable that returns control can be replaced for the current run, but an exact hit is not rewritten. The SDK checks show that selected files exist, not that an interrupted SDK install completed.
Hardening Proposals
proposed — Keep executable caching for CI, but consider either installing the pinned tool afresh for signing jobs or verifying the cached binary against independently trusted provenance before its first execution.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: d289c3d2-1a5e-4507-be31-ffdb7361b403
Commits
Reviewing files that changed from the base of the PR and between 28217ad and 3861748.
Files selected for processing: 7
.github/scripts/linux-deps.sh
.github/workflows/ci.yml
.github/workflows/nightly-release.yml
.github/workflows/packaging.yml
.github/workflows/website-pipeline.yml
android/ci-setup.sh
docs/testing.md
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #397. The coverage floor rollout is in #639.
Checks
cargo xtask docs,cargo xtask ci,cargo xtask pre-push, andgit diff --cached --checkpassed.bash -n .github/scripts/linux-deps.shandbash -n android/ci-setup.shpassed. Verified package selection with--listfor all four Linux profiles.Summary by CodeRabbit
Chores
Documentation